<?php

namespace Common\Service;


/** 
 * 举报
 * @author Legend. <xcx_legender@qq.com>
 * @param 
 * @return 
 */
Class AccuseService extends BaseService
{

	/** 
		module : 举报模型   |  comments, user, video
		type   : 举报类型   |  辱骂, 色情, 广告, 浪费楼层
		target_id:  目标ID  | 对应的 comment_id, uid, video_id
		status : 状态 		| 0: 未处理 1: 处理 -1: 不予处理(删除)
		create_time: 举报时间
		uid    : UID
	 */
		// 状态
	const STATUS_PEDDING = 0;	// 审核 pedding
	const STATUS_PASS 	 = 1;	// 展示 pass
	const STATUS_DEL  	 = -1;  // 删除 delete

	protected $_auto = array(
        array('uid'			, 'intval', self::MODEL_BOTH, 'function'),
        array('create_time'	, NOW_TIME, self::MODEL_INSERT),
        array('status'		, self::STATUS_PEDDING, self::MODEL_INSERT),
        array('status'		, 'intval', self::MODEL_BOTH, 'function'),
        array('target_id'	, 'intval', self::MODEL_BOTH, 'function'),
    );

}